 <% form_for @user do |form| %>
 <%= form.error_messages %>
<i>* = campo requerido</i>
 <table  >
  <tr>
    <td class="inColumn">
      <%= form.label :username, "Nombre de usuario * " %>
    </td>
    <td>
      <%= form.text_field :username %>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
      <%= form.label :complete_name, "Nombre completo  * " %>
    </td>
    <td>
      <%= form.text_field :complete_name %>
    </td>
  </tr>

  <tr>
    <td class="inColumn">
      <%= form.label :email, "Email  * " %>
    </td>
    <td>
      <%= form.text_field :email %>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
      <%= form.label :password, "Clave  * " %>
    </td>
    <td>
      <%= form.password_field :password %>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
      <%= form.label :password_confirmation, "Confirmación de clave  * " %>
    </td>
    <td>
      <%= form.password_field :password_confirmation %>
    </td>
  </tr>

  <tr>
    <td class="inColumn">
      <%= form.label :user_id, "El usuario es  * " %>
    </td>
    <td>
        <%if current_user.role_id<3%>
            <%= select_role %>
        <%  else %>
            <b><%=  current_user.username %></b>
        <%  end %>
    </td>
  </tr>
 </table><br/><br/>
<%= form.submit "Guardar" %>
<%= form.submit "Cancelar" %>
 <% end %>